package com.supcon.web;

import com.supcon.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author BeautifulHao
 * @description 页面视图
 * @create 2019-04-26 13:32
 **/
@Controller
public class UserPageController {
    @Autowired
    UserService userService;

    @RequestMapping("/user")
    public String listPage(ModelMap map){
        map.addAttribute("name", "hello world");
        return "user";
    }
}
